#ifndef MYNSWINDOW_H
#define MYNSWINDOW_H

#include "../ui_multimedia_toolbox.h"
#include <QMainWindow>
#include <QDialogButtonBox>
#include <QLabel>
#include <QSpinBox>
#include <QSlider>
#include <QSound>
#include <QDialog>
#include "SoundTab.h"

#define INFINITY 10000000

class MyNewSoundWin : public QDialog
{
	Q_OBJECT

	public:
		MyNewSoundWin(SoundTab * st, QMainWindow *parent = 0, SoundObj **so = 0);
		~MyNewSoundWin();

	private slots:
		void accept();
		void checkFrequency();

	private:
		const static long winWidth  = 300L;
		const static long winHeight = 350L;

		SoundObj **so;

		QLabel *signalFormLabel;
		QLabel *signalFreqLabel;
		QLabel *soundLengthLabel;
		QLabel *sampleFreqLabel;
		QLabel *amplitudeLabel;
		QLabel *amplitudeValue;
		QLabel *warning;

		QComboBox *signalFormCombo;
		QSpinBox *signalFreqLine;
		QSpinBox *soundLengthLine;
		QSpinBox *sampleFreqLine;
		QSlider  *amplitudeSlider;

		QDialogButtonBox *buttonBox;

		SoundTab * soundTab;

		void windowSize();
};

#endif // MYWINDOW_H
